home *** CD-ROM | disk | FTP | other *** search
- Path: misery.millcomm.com!not-for-mail
- From: llucius@millcomm.com (Yambo)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Is this a SAS/C bug or have I coded it wrong?
- Date: 4 Jan 1996 06:16:37 GMT
- Organization: the 9672-R83
- Message-ID: <4cfrc5$gsc@misery.millcomm.com>
- NNTP-Posting-Host: mill2.millcomm.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Is this a SAS/C bug or am I getting more blind???
-
- =========================================================================
- The following code:
- =========================================================================
-
- tmpbuf[10];
-
- int
- test( void )
- {
-
- if ( tmpbuf[0] & 0x1f == 1 )
- return 1;
-
- return 0;
- }
-
- =========================================================================
- Produces:
- =========================================================================
- SECTION text,CODE
- __code:
- test:
- ___test__1:
- MOVEQ.L #$0,D0 ;7000
- ___test__2:
- RTS ;4e75
- __const:
- __strings:
- XDEF test
-
- SECTION __MERGED,BSS
- __MERGEDBSS
- tmpbuf:
- DS.B 40
- XDEF tmpbuf
- END
- =========================================================================
- Is this right? Where'd the "IF" go? Do I have it coded wrong?
-
- TIA
-
- --
- __ Y_ a_ m_ b_ o_ | The leanest, meanest, fightinest sweet tater on Earth!
- oo o oo o o |
- o o o | llucius@millcomm.com
- o oo o o |
- -- -- -- -- -- -- | http://www.millcomm.com/~llucius/index.html (coming soon)
-
-